<?php
/**
 * IG_Cryptoguard_Abstract
 *
 * @author maomao.thx@gmail.com
 * @copyright Copyright (c) 2009 Green Shore (http://www.iwgame.com)
 * @version $Id: Abstract.php 735 2011-08-09 02:23:19Z mmxie $
 */
abstract class IG_Cryptoguard_Abstract
{
    protected $_message;

    /**
     * 验证
     * @param array $param
     * @return int
     */
    public abstract function auth($username, $passpod);

    public abstract function bind($username, $passpod, $tokensn);

    public abstract function unbind($username, $passpod, $tokensn);

    public abstract function sync($username, $passpod, $tokensn);

    public abstract function queryuser($tokensn);

    public abstract function querysn($username);

    public abstract function delete($username, $tokensn = '');

    public abstract function querystatus($username);

    public abstract function replace($username, $tokensn, $passpod, $newtokensn, $newpasspod);

    /**
     * 返回消息
     * @return string
     */
    public function getMessage()
    {
        return $this->_message;
    }

    /**
     * @return mixed
     */
    public function getResult()
    {
        return $this->_result;
    }
}